import request from '@/utils/request'

export const loainApi = data => request.post('/sys/login', data)

export const getUserInfoApi = () => request.get('/sys/profile')

export const upadePassApi = data => request.put('/sys/user/updatePass', data)

export const getDataApi = () => request.get('/example/list')

// export const getDataIDApi = data => request.get(`/example/easyList?type=${data}`)

// 地图数据
export function getDataIDApi(params) {
  return request({
    url: '/example/easyList',
    method: 'get',
    params
  })
}

// 地图经纬度数据
export function getChinaApi(params) {
  return request({
    url: '/geo/get',
    method: 'get',
    params
  })
}
export const getDicApi = () => request.get('/dictionary/list')

